package com.suning.jiucai.utils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ResponseUtils {
	
	//消息类型
	public static final String RESPONSE_TYPE = "K";
	
	//SessionID
	public static final String SESSION_ID = "S";
	
	//Result
	public static final String RESULT = "R";
	
	public enum Type {
		JCR,OCR,CR,PraiseR,Broadcast,HSR
	}

	//有sessionid的 需要回调callback
	public static final List<String> CLIENT_RESPONSE_CALLBACK_MSG_TYPES = new ArrayList<String>(
			Arrays.asList(Type.JCR.name(), Type.OCR.name(), Type.CR.name()));
	
	//需要进行消息监听的(赞和聊天消息)
	public static final List<String> CLIENT_RESPONSE_MSG_TYPES = new ArrayList<String>(
			Arrays.asList(Type.PraiseR.name(), Type.Broadcast.name()));
	
	//握手返回消息
	public static final List<String> CLIENT_RESPONSE_HANDSHAKE_TYPES = new ArrayList<String>(Arrays.asList(Type.HSR.name()));
}
